class Course < ActiveRecord::Base
  attr_accessible :course_id, :name

  # Validations 
  validates :name, presence: {message: "Cannot be blank"}
   
  # Relations
  has_and_belongs_to_many :students
  belongs_to :teacher

  # Methods
end
